QT       += core gui sql charts serialport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

# 设置 C++ 标准
CONFIG += c++14

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

# 设置构建目录隔离
MOC_DIR = build/moc
OBJECTS_DIR = build/obj
RCC_DIR = build/res
UI_DIR = build/ui

# 包含各个子模块的pri文件
include($$PWD/core/databasepool/databasepool.pri)
include($$PWD/core/threadpool/threadpool.pri)
include($$PWD/core/LogManager/LogManager.pri)
include($$PWD/modules/user-management/usermanagement.pri)
include($$PWD/modules/device-management/devicemanagement.pri)
include($$PWD/modules/data-monitor/datamonitor.pri)
include($$PWD/modules/alert-manager/alertmanager.pri)
include($$PWD/modules/data-analysis/dataanalysis.pri)
include($$PWD/app/widget.pri)


# 源文件
SOURCES += \
    app/adminloginform.cpp \
    app/baseframemove.cpp \
    app/findpasswordform.cpp \
    app/main.cpp \
    app/mainbar.cpp \
    app/pageadmininfo.cpp \
    app/pageadminupdateinfo.cpp \
    app/pagealarmmgmt.cpp \
    app/pagedataanalysis.cpp \
    app/pagedatamonitor.cpp \
    app/pagedeviceinfo.cpp \
    app/pagedevicemgmt.cpp \
    app/pagelogmgmt.cpp \
    app/pageuserinfo.cpp \
    app/pageusermgmt.cpp \
    app/pageuserupdateinfo.cpp \
    app/registerform.cpp \
    app/status.cpp \
    app/styleset.cpp \
    app/testform.cpp \
    app/title.cpp \
    app/uartframe.cpp \
    app/userloginform.cpp


# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

# 文件清单更新
DISTFILES +=

FORMS += \
    app/adminloginform.ui \
    app/findpasswordform.ui \
    app/mainbar.ui \
    app/pageadmininfo.ui \
    app/pageadminupdateinfo.ui \
    app/pagealarmmgmt.ui \
    app/pagedataanalysis.ui \
    app/pagedatamonitor.ui \
    app/pagedeviceinfo.ui \
    app/pagedevicemgmt.ui \
    app/pagelogmgmt.ui \
    app/pageuserinfo.ui \
    app/pageusermgmt.ui \
    app/pageuserupdateinfo.ui \
    app/registerform.ui \
    app/status.ui \
    app/testform.ui \
    app/title.ui \
    app/uartframe.ui \
    app/userloginform.ui \
    app/widget.ui

HEADERS += \
    app/adminloginform.h \
    app/baseframemove.h \
    app/findpasswordform.h \
    app/mainbar.h \
    app/pageadmininfo.h \
    app/pageadminupdateinfo.h \
    app/pagealarmmgmt.h \
    app/pagedataanalysis.h \
    app/pagedatamonitor.h \
    app/pagedeviceinfo.h \
    app/pagedevicemgmt.h \
    app/pagelogmgmt.h \
    app/pageuserinfo.h \
    app/pageusermgmt.h \
    app/pageuserupdateinfo.h \
    app/registerform.h \
    app/status.h \
    app/styleset.h \
    app/testform.h \
    app/title.h \
    app/uartframe.h \
    app/userloginform.h

RESOURCES += \
    app/sources.qrc
